package spring.angularjs.domain.json;

// Generated Oct 14, 2014 9:02:21 PM by Hibernate Tools 3.4.0.CR1

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import spring.angularjs.customannotation.CardNumber;
import spring.angularjs.customannotation.FirstLastName;
import spring.angularjs.customannotation.LoginId;
import spring.angularjs.customannotation.MidName;
import spring.angularjs.customannotation.Phone1;
import spring.angularjs.customannotation.Phone2;

// Generated Oct 14, 2014 9:02:21 PM by Hibernate Tools 3.4.0.CR1

/**
 * Userinfo generated by hbm2java
 */

public class UserTemp implements java.io.Serializable {

		@Size(min=5, message="Username at least 5 characters")
		@LoginId
        private String loginId;
        private String statusid;
        private String roleid;
        
        @Size(min=8, message="Password at least 8 characters")
        private String password;
        
        @CardNumber
        private String cardnumberid;
        
        @FirstLastName
        private String firstname;
        
        @FirstLastName
        private String lastname;
        
        @MidName
        private String midname;
        
        @Phone1
        private String phone1;
        
        @Phone2
        private String phone2;
        
        @NotEmpty(message="Address not empty")
        private String address1;
        private String address2;
        
        @NotEmpty(message="Email not empty")
    	@Email(message="Invalid Email")
        private String email1;
        
        @Email(message="Invalid Email")
        private String email2;
        private String image;
        
        public UserTemp() {
        }

        public UserTemp(String loginId, String statusid, String roleid, String password,
                        String cardnumberid, String firstname, String lastname,
                        String phone1, String address1, String email1) {
                this.loginId = loginId;
                this.statusid = statusid;
                this.roleid = roleid;
                this.password = password;
                this.cardnumberid = cardnumberid;
                this.firstname = firstname;
                this.lastname = lastname;
                this.phone1 = phone1;
                this.address1 = address1;
                this.email1 = email1;
        }

        public UserTemp(String loginId, String statusid, String roleid, String password,
                        String cardnumberid, String firstname, String lastname,
                        String midname, String phone1, String phone2, String address1,
                        String address2, String email1, String email2, String image) {
                this.loginId = loginId;
                this.statusid = statusid;
                this.roleid = roleid;
                this.password = password;
                this.cardnumberid = cardnumberid;
                this.firstname = firstname;
                this.lastname = lastname;
                this.midname = midname;
                this.phone1 = phone1;
                this.phone2 = phone2;
                this.address1 = address1;
                this.address2 = address2;
                this.email1 = email1;
                this.email2 = email2;
                this.image = image;
        }

        public UserTemp(String loginId, String statusid, String roleid, String password,
                String cardnumberid, String firstname, String lastname,
                String midname, String phone1, String phone2, String address1,
                String address2, String email1, String email2) {
		        this.loginId = loginId;
		        this.statusid = statusid;
		        this.roleid = roleid;
		        this.password = password;
		        this.cardnumberid = cardnumberid;
		        this.firstname = firstname;
		        this.lastname = lastname;
		        this.midname = midname;
		        this.phone1 = phone1;
		        this.phone2 = phone2;
		        this.address1 = address1;
		        this.address2 = address2;
		        this.email1 = email1;
		        this.email2 = email2;
        }
       

		public String getLoginId() {
                return this.loginId;
        }

        public void setLoginId(String loginId) {
                this.loginId = loginId;
        }

        
        public String getPassword() {
                return this.password;
        }

        public void setPassword(String password) {
                this.password = password;
        }

        public String getCardnumberid() {
                return this.cardnumberid;
        }

        public void setCardnumberid(String cardnumberid) {
                this.cardnumberid = cardnumberid;
        }

        public String getFirstname() {
                return this.firstname;
        }

        public void setFirstname(String firstname) {
                this.firstname = firstname;
        }

        public String getLastname() {
                return this.lastname;
        }

        public void setLastname(String lastname) {
                this.lastname = lastname;
        }

        public String getMidname() {
                return this.midname;
        }

        public void setMidname(String midname) {
                this.midname = midname;
        }

        public String getPhone1() {
                return this.phone1;
        }

        public void setPhone1(String phone1) {
                this.phone1 = phone1;
        }

        public String getPhone2() {
                return this.phone2;
        }

        public void setPhone2(String phone2) {
                this.phone2 = phone2;
        }

        public String getAddress1() {
                return this.address1;
        }

        public void setAddress1(String address1) {
                this.address1 = address1;
        }

        public String getAddress2() {
                return this.address2;
        }

        public void setAddress2(String address2) {
                this.address2 = address2;
        }

        public String getEmail1() {
                return this.email1;
        }

        public void setEmail1(String email1) {
                this.email1 = email1;
        }

        public String getEmail2() {
                return this.email2;
        }

        public void setEmail2(String email2) {
                this.email2 = email2;
        }

        public String getImage() {
                return this.image;
        }

        public void setImage(String image) {
                this.image = image;
        }

        public String getStatusid() {
                return statusid;
        }

        public void setStatusid(String statusid) {
                this.statusid = statusid;
        }

        public String getRoleid() {
                return roleid;
        }

        public void setRoleid(String roleid) {
                this.roleid = roleid;
        }

}
